﻿using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Vjezbe1;

namespace Zadatak1.Tests
{
    [TestClass]
    public class FibonacciGeneratorTest
    {
        FibonacciGenerator fib = new FibonacciGenerator();

        [TestMethod]
        public void Test_fibonacci()
        {
            Assert.AreEqual(0, fib.generate(0));
            Assert.AreEqual(1, fib.generate(1));
            Assert.AreEqual(1, fib.generate(2));
            Assert.AreEqual(2, fib.generate(3));
            Assert.AreEqual(3, fib.generate(4));
            Assert.AreEqual(5, fib.generate(5));
            Assert.AreEqual(8, fib.generate(6));
            Assert.AreEqual(13, fib.generate(7));
            Assert.AreEqual(21, fib.generate(8));
        }

        [TestMethod]
        public void Test_fibonacci_8()
        {
            Assert.AreEqual(21, fib.generate(8));
        }

        // filip je jazavac
        // mzagar: komentar
    }
}
